package pt.iul.dcti.poo.financemanager.accounts;

import java.util.ArrayList;

import pt.iul.dcti.poo.financemanager.date.Date;


public class VIPAccount extends Account {

	private double d;
	
	public VIPAccount(long id, String name, double d) {
		super(id, name);
		this.d = d;
	}

	public VIPAccount(long id, String name, String additionalInfo, double currentBalance, Date startDate, Date endDate, ArrayList<StatementLine> listaMovimentos) {
		super(id, name, additionalInfo, currentBalance, startDate, endDate, listaMovimentos);
	}

	public long getId(){
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public  String getName(){
		return name;
	}

	public void setName(String name){
		this.name = name;
	}

	@Override
	public double estimatedAverageBalance() {
		return currentBalance();
	}

	@Override
	public double getInterestRate() {
		return d;
	}

	@Override
	public String additionalInfo() {
		return String.valueOf(d);
	}


}

